-
Notifications
You must be signed in to change notification settings - Fork 23
ENH: prevent 'from __future__ import annotations' #242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| # It's excluded in our pyproject.toml. | ||
|
|
||
| # BAD IMPORTS (Y044) | ||
| from __future__ import annotations # Y044 "from __future__ import annotations" has no effect in stub files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also move it to the bad imports. I put it up there as I think __future__ imports have to be the very first import.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having it here is fine, I think.
AlexWaygood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just two nits about the docs (most of our code snippets in the docs are surrounded by backticks rather than " quotes).
Also, feel free to give yourself credit in the CHANGELOG if you like ("Contributed by Torsten Wörtwein"). Not mandatory.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
AlexWaygood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
closes #241